package com.fms;

import com.fms.quartz.SystemSchedulerService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;


@SpringBootApplication
public class ServerFurnitureApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServerFurnitureApplication.class, args);
    }

    @Bean
    public CommandLineRunner init(SystemSchedulerService systemSchedulerService) {
        return args->systemSchedulerService.getAllJobKeys();
    }
}
